#include <iostream>
#include <fmt/core.h>

using namespace std;
using namespace fmt;

void SampleFun(double &);

int main()
{
    double x = 1.0;
    double pi = 3.14159265358979;

    cout << fmt::format("Using format: 1/2Pi = {0}, Pi = {1},\n", pi, pi / 2);
    cout << "Using iostream: Pi = " << pi << endl;

    cout << "Now x = " << x << endl;
    SampleFun(x);
    std::string str = fmt::format("Now x = {:0>8}", x);
    cout << str << endl;

    return 0;
}

void SampleFun(double& variable)
{
    variable = variable * 2;
}
